import Layout from '@/layout'
import parentView from '@/layout/components/AppMain'
export default [
  {
    path: '/productCenter',
    name: 'productCenter',
    meta: {
      icon: 'md-cloud-upload',
      title: '产品中心'
    },
    component: Layout,
    children: [
      {
        path: 'product',
        name: 'product',
        meta: {
          icon: 'ios-document',
          title: '贷款产品管理'
        },
        component: () => import('@/views/productCenter/product')
      },
      {
        path: 'userLevel',
        name: 'userLevel',
        meta: {
          icon: 'ios-document',
          title: '用户等级管理'
        },
        component: () => import('@/views/productCenter/userLevel')
      },
      {
        path: 'appConfig',
        name: 'appConfig',
        meta: {
          icon: 'ios-document',
          title: 'APP配置'
        },
        component: parentView,
        children: [
          {
            path: 'versionUpdate',
            name: 'versionUpdate',
            meta: {
              icon: 'ios-document',
              title: '版本更新'
            },
            component: () => import('@/views/productCenter/appConfig/versionUpdate')
          },
          {
            path: 'calendar',
            name: 'calendar',
            meta: {
              icon: 'ios-document',
              title: '工作日历管理'
            },
            component: () => import('@/views/productCenter/appConfig/calendar')
          },
          {
            path: 'helpCenter',
            name: 'helpCenter',
            meta: {
              icon: 'ios-document',
              title: '帮助中心'
            },
            component: () => import('@/views/productCenter/appConfig/helpCenter')
          },
          {
            path: 'SMSTemplate',
            name: 'SMSTemplate',
            meta: {
              icon: 'ios-document',
              title: '短信模板'
            },
            component: () => import('@/views/productCenter/appConfig/SMSTemplate')
          },
          {
            path: 'pushTemplate',
            name: 'pushTemplate',
            meta: {
              icon: 'ios-document',
              title: 'push推送模板'
            },
            component: () => import('@/views/productCenter/appConfig/pushTemplate')
          },
          {
            path: 'contactInfo',
            name: 'contactInfo',
            meta: {
              icon: 'ios-document',
              title: '联系方式'
            },
            component: () => import('@/views/productCenter/appConfig/contactInfo')
          },
          {
            path: 'bankManagement',
            name: 'bankManagement',
            meta: {
              icon: 'ios-document',
              title: '银行管理'
            },
            component: () => import('@/views/productCenter/appConfig/bankManagement')
          }
        ]
      }
    ]
  }
]
